package com.creator.paas.config;

/**
 * @Author: Hank.GUO
 * @Date: 2025/8/19 18:49
 * @Email: guohaihang0512@163.com
 * @Description
 */
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Configuration
@EnableSwagger2
public class OpenApiConfig {

    @Bean
    public OpenAPI applicationOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("API接口文档")
                        .version("1.0.0")
                        .description("这是一个Spring Boot项目的接口文档示例")
                );
    }
}
